package com.gable.exhibition.dao;

import com.gable.exhibition.model.TrainPerson;
import com.gable.exhibition.view.TrainPersonView;

import java.util.List;

public interface TrainPersonDao {
    int deleteByPrimaryKey(Long id);

    int insert(TrainPerson record);

    int insertSelective(TrainPerson record);

    TrainPerson selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TrainPerson record);

    int updateByPrimaryKey(TrainPerson record);

    List<TrainPersonView> queryTrainPerson(Long trainId);

}